package org.iabako.shared.iservice.generic;

import org.iabako.shared.entity.business.AbstractEntity;
import org.iabako.shared.querydefinition.dto.QueryDefinitionDTO;

/**
 * Created by jose on 11/02/14.
 */
public interface CRUDService {

    String getNextAvailableId();

    AbstractEntity getById(Long id);

    AbstractEntity save(AbstractEntity entity);

    Boolean remove(Long id);

    Boolean remove(AbstractEntity entity);

    Boolean removeAll(QueryDefinitionDTO queryDefinitionDTO);
}
